home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / datacomm / 582 < prev    next >
Encoding:
Text File  |  1996-08-05  |  6.1 KB  |  202 lines

  1. Path: coretech.com!not-for-mail
  2. From: hoggy@coretech.com (Brian)
  3. Newsgroups: comp.sys.amiga.datacomm
  4. Subject: Re: Staying Online
  5. Date: 28 Jan 1996 14:17:05 GMT
  6. Organization: MY place
  7. Message-ID: <4eg0h1$7fm@homer.alpha.net>
  8. References: <4dlqnt$hgp@bud.shadow.net> <30FE7930.1B87@topcity.mn.org>
  9. NNTP-Posting-Host: calumet.coretech.com
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11.  
  12. on 26 Jan 1996 01:44:17 GMT, Herbert Klackl (hak@vip.at) wrote:
  13. : Well, unfortunately there is no global solution to this problem due to the
  14. : fact that there are to many variables in this game (e.g. type of Amiga;
  15. : accelerator card yes/no; serial.device replacement yes/no/which; dynamic IP-
  16. : Address yes/no etc.).
  17. : I *might* be able to help you on this one if you send me your full
  18. : configuration. Another solution would be to get in contact with Holger Kruse
  19. : (kruse@america.com) the author of the ppp.device. He seems to be a very
  20. : helpfull guy who offered his assistance more then once in this newsgroup.
  21. : Sorry that I couldn't be more specific, but if you write the error you get is
  22. : "opendevice: resource allocation failure" I can at least think of this
  23. : possibilities and there might even be more:
  24. :         - There dosen't exist a "DEVS:Sana2/ppp.device"
  25. :         - Wrong unit number in "AmiTCP:db/interfaces"
  26. :         - No "ENV:Sana2/ppp0.config"
  27. : Bye Herby
  28.  
  29. -- 
  30. here's my startnet script:
  31.  
  32. .key IP,HN/K,DEST/K,MASK/K,GW/K,USER/K,SRV/S,BOOTP/S,UMASK/K,S2CF/K,S2OPT/K,IFACE/K,DEBUG/S
  33. .bra {
  34. .ket }
  35. ;
  36. ; AmiTCP/IP startnet script
  37. ;
  38. ; Copyright ⌐ 1994 AmiTCP/IP Group,
  39. ;                  NSDi - Network Solutions Development Inc., Finland
  40. ;                  All rights reserved.
  41. ;
  42. ; *NOTE*  NORMALLY YOU SHOULD USE THE PROVIDED CONFIGURATION UTILITY
  43. ; *NOTE*  TO CHANGE THE CONFIGURATION.  IF YOU NEED TO CHANGE THE 
  44. ; *NOTE*  CONFIGURATION MANUALLY, RESTRICT ANY MODIFICATIONS TO THIS 
  45. ; *NOTE*  "DEF" SECTION.
  46. ;
  47. ; IP address if known, _nothing_ otherwise
  48. .def IP    
  49. ; Our full host name and aliases if known, _nothing_ otherwise
  50. ; (if this is set, the IP _must_ be set, too)
  51. .def HN    
  52. ; The destination address, needed only if GW is not good destination
  53. .def DEST  
  54. ; netmask if known, _nothing_ otherwise
  55. .def MASK  
  56. ; IP address of the default gateway if known, _nothing_ otherwise
  57. .def GW    
  58. ; Default login name
  59. .def USER  hoggy
  60. ; User's file creation mask
  61. .def UMASK 022
  62. ; "SRV" if servers are used, _nothing_ otherwise
  63. .def SRV   SRV
  64. ; "BOOTP" if bootstrap protocol is used, _nothing_ otherwise
  65. .def BOOTP 
  66. ; Interface name
  67. .def IFACE ppp0
  68. ; Sana-II device configuration file, _nothing_ otherwise
  69. .def S2CF  ppp0.config
  70. ; Sana-II device configuration to be stored into the configuration file
  71. .def S2OPT "8n1.device 0 57600 0.0.0.0 7WIRE FCS=0 VJCMODE=2 MTU=1500 SHARED CD DIALSCRIPT=amitcp:db/dialscript"
  72. ;
  73. ; *NOTE*  YOU SHOULD NOT NEED TO EDIT ANYTHING BELOW. IF YOU NEED TO ADD
  74. ; *NOTE*  CONFIGURATIONS OF ADDITIONAL INTERFACES OR TO START UTILITIES,
  75. ; *NOTE*  DO IT IN THE AmiTCP:db/User-Startnet.
  76. ;
  77. ; Set the failat level so that the errors can be handled by the script
  78. FailAt 21
  79. ; Log in
  80. echo
  81. echo login: {USER}
  82. AmiTCP:bin/login -f {USER}
  83. AmiTCP:bin/umask {UMASK}
  84. run AmiTCP:AmiTCP {DEBUG}
  85. WaitForPort AMITCP
  86. If NOT Warn
  87.   ; Create Sana2 configuration file if used
  88.   If NOT X EQ "X{S2CF}"
  89.     ; Assure that ENV:Sana2 exists
  90.     If NOT Exists ENV:Sana2
  91.       MakeDir ENV:Sana2
  92.     EndIf
  93.     ; Create configuration file
  94.     Echo "{S2OPT}" >ENV:Sana2/{S2CF}
  95.   EndIf
  96.   ; Do we need loopback?
  97.   If X EQ "X{SRV}"
  98.     Set LOOPBACK=""
  99.   Else
  100.     Set LOOPBACK="LOOPBACK"
  101.   EndIf
  102.   ; Configure interface
  103.   AmiTCP:bin/bootpconfig {IFACE} IP {IP$*} DEST {DEST$*} MASK {MASK$*} GW {GW$*} $LOOPBACK {BOOTP} {DEBUG}
  104.   If NOT Warn
  105.     If NOT X EQ "X{HN}"
  106.       rx "address AMITCP; 'ADD HOST {IP} {HN}'"
  107.     Else
  108.       If NOT X EQ "X{DEBUG}"
  109.         echo "Quering Name Server for the host name..."
  110.       EndIf
  111.     EndIf
  112. ;   setenv HOSTNAME `AmiTCP:bin/hostname`
  113.     Assign TCP: Exists >NIL:
  114.     IF Warn
  115.       Mount TCP: from AmiTCP:devs/Inet-Mountlist
  116.     EndIf
  117.     ; Start the internet `super server' if wanted
  118.     If NOT X EQ "X{SRV}"
  119.       If X EQ "X{DEBUG}"
  120.         Run <NIL: >NIL: AmiTCP:bin/inetd
  121.       Else
  122.         Run AmiTCP:bin/inetd {DEBUG}
  123.       EndIf
  124.     EndIf
  125.     ;
  126.     ; Configure any additional interfaces & start utilities in 
  127.     ; AmiTCP:db/User-Startnet
  128.     ;
  129.     If Exists AmiTCP:db/User-Startnet
  130.       Execute AmiTCP:db/User-Startnet
  131.     EndIf
  132.   Else
  133.     Echo Interface {IFACE} configuration failed!
  134.     Echo Stopping AmiTCP
  135. ;    AmiTCP:bin/stopnet FLUSH
  136.   EndIf
  137. Else
  138.   Echo AmiTCP couldn't be started!
  139. EndIf
  140.  
  141. ; save IPADDRESSes to ENVARC to restart after crash ?????
  142. copy ENV:ppp0IPLocal to ENVARC:
  143. copy ENV:ppp0IPRemote to ENVARC:
  144.  
  145. ; EOF
  146.  
  147.  
  148. Although I dont think it matters, here is my dialscript:
  149.  
  150.  
  151. ECHO ON
  152. TIMEOUT 2000
  153. SEND "AT&D0DT6382618"
  154. WAIT "CONNECT"
  155. DELAY 50
  156. SEND ""
  157. WAIT "login:"
  158. SEND "(name)"
  159. WAIT "assword:"
  160. SEND "(password)
  161.  
  162.  
  163. If I lose the connection and issue the startnet command again (without
  164. resetting) it just dials up again without a problem.
  165.  
  166. But after my machine crashes(the 'RS' light turns off on my modem)
  167. and I execute the startnet script, my modem hangs up and I get error
  168. messages as if my modem wasn't able to connect.  The Dialer window
  169. pops up even though I have the CD option set - it is at this point
  170. where my modem hangs up and the dialer window just sits there.
  171.  
  172. When I had the (unregistered)AmiTCP demo 4, I can remember having
  173. to use a term program(Term) to reenter my name and password(I have no
  174. idea how their machine got 'reset', but it did) and then I would
  175. execute the startnet script and all was fine again.
  176.  
  177.  
  178. (setup info below) - dynamic PPP
  179.  
  180.                                  Thanks very much,
  181.                                  hoggy@coretech.com
  182.  
  183.                          
  184.  
  185. -- 
  186.  
  187. AMIGA 4000/040/18M--1.5G + 150M Bernoulli + SOON to be JAZZ drive(disks are *MUCH* cheaper!! :-)))
  188.                     (DKB4091 SCSI-II controller)
  189. ONLINE with a Pratical Peripherals 'PC288LCD', and a dedicated 'no frills' phone line.
  190.        Using registered AmiTCP 4.2 and reg. PPP1.40beta.
  191.  
  192. "I don't wanna go to work, I don't wanna go to school, I don't wanna eat, sleep, or think.  All I
  193. wanna do is surf ----- DA NET!!"
  194.